package Service.Impl;

import Dao.QuyuAlarmDao;
import Dao.SysInfoDao;
import Model.QuyuAlarm;
import Model.SysInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import Service.QuyuAlarmService;

import java.util.List;

@Service("QuyuAlarmService")
public class QuyuAlarmServiceImpl implements QuyuAlarmService {

    @Autowired
    private QuyuAlarmDao quyuAlarmDao;
    @Autowired
    private SysInfoDao sysInfoDao;

    //得到可控范围表
    @Override
    public List<QuyuAlarm> getAllAlarmList() {
        return this.quyuAlarmDao.getAllAlarmList();
    }

    //创建列表
    @Override
    public  int insert(QuyuAlarm quyuAlarm){
        return quyuAlarmDao.insert(quyuAlarm);
    }


    //展示可控范围表
    @Override
    public List<QuyuAlarm> getAllAlarmListShow() {
        return this.quyuAlarmDao.getAllAlarmListShow();
    }

//    //    获取用户登录时间
//    @Override
//    public List<SysInfo> getLogTime(){
//        return quyuAlarmDao.getLogTime();
//    }
}
